package com.hanwei.uap.admin.web.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {
	@Value("${app.name}")
	private String appname;
    @RequestMapping({"/","/index"})
	public String index(){
		return "index";
	}
	
	@RequestMapping(value="/login",method=RequestMethod.GET)
	public String login(){
		return "login";
	}
	@RequestMapping(value="/main",method=RequestMethod.GET)
	public String main(){
		return "main";
	}
	@RequestMapping(value="/logout",method=RequestMethod.GET)
	public String logout(){
		return "login";
	}
	@RequestMapping(value="/login",method=RequestMethod.POST)
	public String loginAtion(){
		return "index";
	}
}